<?php

class SiteController extends Controller {

    public function actionIndex() {
        $data['recommends'] = Recommend::model()->findAll(array('limit' => '6'));   //今日推荐
        $data['rands'] = Rand::model()->findAll(array('limit' => '6')); //随机推荐
        $data['recentFinishBooks'] = Book::model()->findAll(array('order' => 'book_finish_time desc', 'limit' => '6', 'condition' => 'book_status=1')); //最新完本
        $this->render('index', $data);
    }

}